package sse.ustc.cc.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TabHost;
import android.widget.TextView;
import android.app.TabActivity;

public class FileAty extends TabActivity {

	private TabHost mTabHost = null;;
	private View indicator = null;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.cc_main);

		TabHost mTabHost = getTabHost();

		mTabHost.addTab(mTabHost.newTabSpec("本地文件").setIndicator(
				"本地文件",
				getResources().getDrawable(android.R.drawable.arrow_down_float)).setContent(
				new Intent(this, FileLocalAty.class)));
		mTabHost.addTab(mTabHost.newTabSpec("服务器文件").setIndicator(
				"服务器文件",
				getResources().getDrawable(android.R.drawable.arrow_down_float)).setContent(
				new Intent(this, FileServerAty.class)));
		mTabHost.setCurrentTab(0);
	}

	@Override
	protected void onDestroy() {
		// TODO Auto-generated method stub
		super.onDestroy();
		mTabHost = null;
	}
}
